package com.yuanjiu.service.yuanjiu;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.yuanjiu.dao.yuanjiu.CategoryDao;
import com.yuanjiu.pojo.yuanjiu.CategoryIdName;
import com.yuanjiu.pojo.yuanjiu.CategoryObject;
import com.yuanjiu.vo.yuanjiu.ProductVo;

@Service
public class CategoryService {

	@Autowired
	@Qualifier("YuanjiuCategoryDao")
	private CategoryDao categoryDao;
	
	public CategoryIdName getCategoryById(String string) {
		return categoryDao.getCategoryById(string);
	}

	public List<CategoryObject> findAllBrandByCategoryId(String string) {
		
		return categoryDao.findAllBrandByCategoryId(string);
	}

	public CategoryObject getBrandById(String brand) {
		return categoryDao.getBrandById(brand); 
	}

	public ProductVo getProductVoByCid(ProductVo productVo) {
		return categoryDao.getProductVoByCid(productVo);
	}

}
